package com.hdaccp.shuiguoD.service.impl;

import com.hdaccp.shuiguoD.dao.XaioshouxxDao;
import com.hdaccp.shuiguoD.entity.Xiaoshouxx;
import com.hdaccp.shuiguoD.service.XiaoshouxxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class XiaoshouxxServiceImpl implements XiaoshouxxService {

    @Autowired
    private XaioshouxxDao xiaoshouxxDao;

    @Override
    public int addxx(Xiaoshouxx xiaoshouxx) {
        return xiaoshouxxDao.addxx(xiaoshouxx);
    }

    @Override
    public List<Xiaoshouxx> getAll(int dh) {
        return xiaoshouxxDao.get(dh);
    }
}
